home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 August: Tool Chest / Dev.CD Aug 00 TC Disk 2.toast / pc / sample code / quicktime / quicktime for java / zoo tutorial / module 6- advanced compositing / source / zoopane.java < prev   
Encoding:
Java Source  |  2000-06-23  |  3.2 KB  |  72 lines

  1. import quicktime.app.anim.Compositor;
  2.  
  3. /**
  4.  * The pane that specifies common behavior for all of the panes in the zoo project
  5.  *
  6.  * @author Levi Brown
  7.  * @author Michael Hopkins
  8.  * @author Apple Computer, Inc.
  9.  * @version 1.0 10/21/1999
  10.  *
  11.  * Copyright:     © Copyright 1999 Apple Computer, Inc. All rights reserved.
  12.  *    
  13.  * Disclaimer:    IMPORTANT:  This Apple software is supplied to you by Apple Computer, Inc.
  14.  *                ("Apple") in consideration of your agreement to the following terms, and your
  15.  *                use, installation, modification or redistribution of this Apple software
  16.  *                constitutes acceptance of these terms.  If you do not agree with these terms,
  17.  *                please do not use, install, modify or redistribute this Apple software.
  18.  *
  19.  *                In consideration of your agreement to abide by the following terms, and subject
  20.  *                to these terms, Apple grants you a personal, non-exclusive license, under Apple’s
  21.  *                copyrights in this original Apple software (the "Apple Software"), to use,
  22.  *                reproduce, modify and redistribute the Apple Software, with or without
  23.  *                modifications, in source and/or binary forms; provided that if you redistribute
  24.  *                the Apple Software in its entirety and without modifications, you must retain
  25.  *                this notice and the following text and disclaimers in all such redistributions of
  26.  *                the Apple Software.  Neither the name, trademarks, service marks or logos of
  27.  *                Apple Computer, Inc. may be used to endorse or promote products derived from the
  28.  *                Apple Software without specific prior written permission from Apple.  Except as
  29.  *                expressly stated in this notice, no other rights or licenses, express or implied,
  30.  *                are granted by Apple herein, including but not limited to any patent rights that
  31.  *                may be infringed by your derivative works or by other works in which the Apple
  32.  *                Software may be incorporated.
  33.  *
  34.  *                The Apple Software is provided by Apple on an "AS IS" basis.  APPLE MAKES NO
  35.  *                WARRANTIES, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION THE IMPLIED
  36.  *                WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  37.  *                PURPOSE, REGARDING THE APPLE SOFTWARE OR ITS USE AND OPERATION ALONE OR IN
  38.  *                COMBINATION WITH YOUR PRODUCTS.
  39.  *
  40.  *                IN NO EVENT SHALL APPLE BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL OR
  41.  *                CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
  42.  *                GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  43.  *                ARISING IN ANY WAY OUT OF THE USE, REPRODUCTION, MODIFICATION AND/OR DISTRIBUTION
  44.  *                OF THE APPLE SOFTWARE, HOWEVER CAUSED AND WHETHER UNDER THEORY OF CONTRACT, TORT
  45.  *                (INCLUDING NEGLIGENCE), STRICT LIABILITY OR OTHERWISE, EVEN IF APPLE HAS BEEN
  46.  *                ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  47.  * 
  48.  */
  49. public abstract class ZooPane
  50. {
  51.     /**
  52.      *
  53.      */
  54.     public Compositor getCompositor()
  55.     {
  56.         return compositor;
  57.     }
  58.  
  59.     /**
  60.      * Called to do any setup after being set as the client of the QTCanvas.
  61.      * May be used to start effects running, movies playing, etc.
  62.      */
  63.     abstract public void start();
  64.  
  65.     /**
  66.      * Called to do clean up after being removed as the client of the QTCanvas.
  67.      * Should be used to stop effects running, movies playing, etc.
  68.      */
  69.     abstract public void stop();
  70.     
  71.     protected Compositor compositor;
  72. }